/* $Id: icaro_science.c,v 1.29 2009/02/10 09:16:12 llundin Exp $
 *
 * This file is part of the IIINSTRUMENT Pipeline
 * Copyright (C) 2002,2003 European Southern Observatory
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * $Author: llundin $
 * $Date: 2009/02/10 09:16:12 $
 * $Revision: 1.29 $
 * $Name:  $
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/*-----------------------------------------------------------------------------
                                Includes
 -----------------------------------------------------------------------------*/

#include <iostream>
#include "IcaroScience.h"
#include "FrameSet.h"
#include "Error.h"


int main()
{
	try
	{
		IcaroScience recipe;
		std::shared_ptr<Refran::FrameSet> frameset(new Refran::FrameSet);

		recipe.setInputFrames(frameset);

		recipe.go();
	}
	catch(Refran::Error& ex)
	{
		std::cerr<<" Refran ERROR: "<<std::endl;
		std::cerr<<ex.what()<<std::endl;
		return 1;
	}
	catch(...)
	{
		std::cerr<<" ERROR: "<<std::endl;
		std::cerr<<" Unhandled unknown exception" <<std::endl;
		return 1;
	}
	return 0;
}

